//  fork exec execFile 都是基于spwan的改进方法 语法糖
const { fork } = require('child_process')

let child = fork('folk1.js', [], {
  cwd: __dirname,
  silent: true
})
child.send({
  name: 'xjh', wife: {
    one: '王烨鑫',
    two: '郭伊扬'
  }
})
child.on('message', msg => console.log(msg)
)